package com.trkj.dao.jpa;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.Tbpowergroup;

public interface IHwcPowergroupDAO extends CrudRepository<Tbpowergroup,Long>{

	/**
	 * 根据角色查询该角色的权限集合
	 * @param roleNo
	 * @return
	 */
	@Query("select pg.powerNo from Tbpowergroup pg where pg.roleNo = ?1")
	public List<BigDecimal>  queryRoleByPower(BigDecimal roleNo);
	
}
